﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NfsModel
{

    /// <summary>
    /// agency:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class agency
    {
        public agency()
        { }
        #region Model
        private int _id;
        private int? _account_id;
        private int? _parents_id;
        private int? _category_id;
        private int? _level_id;
        private string _name;
        private string _company_name;
        private string _level_name;
        private string _mobile;
        private string _contract_name;
        private string _qq;
        private string _wx_openid;
        private string _ww_code;
        private string _id_card;
        private string _shop_url;
        private int? _valid;
        private int? _state;
        private DateTime? _start_time;
        private DateTime? _end_time;
        private string _sq_img;
        public int? shState { get; set; }
        public string au_code { get; set; }

        public int? salesmanid { get; set; }
        public string salesmanname { get; set; }

        public DateTime? austart_time { get; set; }
        public DateTime? auend_time { get; set; }
        /// <summary>
        /// auto_increment
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? account_id
        {
            set { _account_id = value; }
            get { return _account_id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? parents_id
        {
            set { _parents_id = value; }
            get { return _parents_id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? category_id
        {
            set { _category_id = value; }
            get { return _category_id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? level_id
        {
            set { _level_id = value; }
            get { return _level_id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string name
        {
            set { _name = value; }
            get { return _name; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string company_name
        {
            set { _company_name = value; }
            get { return _company_name; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string level_name
        {
            set { _level_name = value; }
            get { return _level_name; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string mobile
        {
            set { _mobile = value; }
            get { return _mobile; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string contract_name
        {
            set { _contract_name = value; }
            get { return _contract_name; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string qq
        {
            set { _qq = value; }
            get { return _qq; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string wx_openid
        {
            set { _wx_openid = value; }
            get { return _wx_openid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ww_code
        {
            set { _ww_code = value; }
            get { return _ww_code; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string id_card
        {
            set { _id_card = value; }
            get { return _id_card; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string shop_url
        {
            set { _shop_url = value; }
            get { return _shop_url; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? valid
        {
            set { _valid = value; }
            get { return _valid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? state
        {
            set { _state = value; }
            get { return _state; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? start_time
        {
            set { _start_time = value; }
            get { return _start_time; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? end_time
        {
            set { _end_time = value; }
            get { return _end_time; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string sq_img
        {
            set { _sq_img = value; }
            get { return _sq_img; }
        }







        ////////////冗余属性
        /// <summary>
        /// 类型名称
        /// </summary>
        public string categoryName { get; set; }
        /// <summary>
        /// 等级名称
        /// </summary>
        public string levelName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string states { get; set; }


        public string user_name { get; set; }

        public int? share_state { get; set; }

        #endregion Model

    }
}
